package model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CommentImpl implements Comment {

	private Author author;
	private Article article;
	private String date;
	private String text;
	private List<Comment> childComments = new ArrayList<Comment>();
	
	@Override
	public Author getAuthor() {
		return author;
	}

	@Override
	public String getDate() {
		return date;
	}

	@Override
	public Article getArticle() {
		return article;
	}

	@Override
	public String getText() {
		return text;
	}

	@Override
	public void setAuthor(Author author) {
		this.author = author;
	}

	@Override
	public void setDate(String date) {
		this.date = date;
	}

	@Override
	public void setArticle(Article article) {
		this.article = article;
	}

	@Override
	public void setText(String text) {
		this.text = text;
	}

	@Override
	public List<Comment> getChildComments() {
		return this.childComments;
	}

	@Override
	public void addChildComment(Comment comment) {
		this.childComments.add(comment);
		
	}
	
	

}
